export default function imageLoader (url, folder) {
    switch (folder) {
        case 'school':
            return new URL(`/src/assets/images/school/${url}`, import.meta.url).href;
        case 'project':
            return new URL(`/src/assets/images/project/${url}`, import.meta.url).href;
        default:
            return new URL(`/src/assets/images/${url}`, import.meta.url).href;
    }
}
